Typically, the key to the proof is to write 1 = ms + nt. For example, if you have a group element a you may write it in the form a = ams + nt = amsant, which will usually solve the problem you are given.